/* ENGINE 2.0
Developer: t.me/moretheme
Screen resolution: 460, 860, 1440, 1920 */
#loading-layer {
    background: var(--color2);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    color: #fff;
    border-radius: 2px
}

#dropmenudiv {
    display: inline-block;
    min-width: 220px!important;
    background: var(--bg2);
    box-shadow: 0 2px 15px rgb(61 61 61 / 8%);
    padding: 15px;
    border-radius: 20px;
    opacity: 1!important;
    font-size: 13px;
}

#dropmenudiv a {
    display: block;
    padding: 10px;
}

#dropmenudiv a:hover {
    background: var(--bg);
    color: #000;
    border-radius: 10px;
}

/* FAST EDIT */
.dlepopupnewsedit input, .dlepopupnewsedit textarea {
    background: var(--bg2);
    margin-bottom: 20px;
}

.dlepopupnewsedit .xfieldsrow > b {
    display: inline-block;
    margin-bottom: 15px;
}

.xfieldscolleft {
    float: left;
    width: 30%
}

.xfieldscolright {
    float: left;
    width: 70%
}

.qq-uploader {
    position: relative;
    width: 100%;
}

.qq-upload-button {
    display: inline-block;
    background: var(--color1);
    padding: 14px 20px;
    border-radius: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    cursor: pointer;
}

#uploadedfile_poster {
    display: flex;
    align-items: center;
}

.uploadedfile {
    border: 2px solid var(--bg2);
    border-radius: 10px;
    padding: 15px;
    width: 180px;
    height: auto;
    text-align: center;
}

.uploadedfile .uploadimage {
    cursor: move;
}

.sortable-ghost {
    opacity: 0.4;
}

.uploadedfile .info {
    white-space: nowrap;
    overflow: hidden;
}

.uploadedfile .info a ~ a {
    margin-left: 10px;
}

/* INFO */
.attention {
    position: relative;
    padding: 20px 30px;
    background: var(--color1);
    color: var(--text);
    border-radius: 10px;
    margin-bottom: 40px;
    font-size: 14px;
    line-height: 18px;
    grid-column: 1/-1;
}

.attention form input {
    background: var(--light);
    font-weight: bold;
    margin: 10px 0;
}

.attention form input[type="submit"] {
    background: var(--bg);
}

.attention form input[type="submit"]:hover {
    background: var(--bg2);
}

/* NAVIGATION */
.navigation {
    grid-column: 1/-1;
    text-align: center;
    margin: 0 auto;
    margin-top: 30px;
}

.navigation a, .navigation span, .navigation-ajax a {
    display: inline-block;
    background-color: var(--bg2);
    border-radius: 6px;
    min-width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    margin-right: 10px;
    margin-bottom: 20px;
    cursor: pointer;
}

.navigation span {
    background: var(--color1);
    color: var(--text1);
}

.navigation a:hover, .navigation-ajax a:hover {
    background-color: var(--color2);
    color: #fff;
}

.navigation .navigation-ajax a, .navigation .navigation-ajax span {
    width: 200px;
}

/* EMOJI */
.emoji {
    vertical-align: middle;
    width: 20px;
    height: 22px;
}

.emoji_box {
    width: 100%;
    max-width: 250px;
}

.emoji_list {
    display: flex;
    align-items: center;
    width: 100%;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'NotoColorEmoji', 'Segoe UI Symbol', 'Android Emoji', 'EmojiSymbols';
    font-size: 20px;
    padding: 10px 0;
    margin-bottom: 10px;
    overflow: auto;
}

.emoji_list::-webkit-scrollbar {
    height: 5px;
}

.emoji_list::-webkit-scrollbar-thumb {
    background-color: #e9e9e9;
}

.emoji_symbol {
    cursor: pointer;
}

.native-emoji {
    font-size: 10px;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'NotoColorEmoji', 'Segoe UI Symbol', 'Android Emoji', 'EmojiSymbols';
}

/* RATING */
.rating {
    font-size: 11px;
}

.unit-rating, .unit-rating li a:hover, .unit-rating li.current-rating {
    background-image: url(../dleimages/rating.svg);
    -webkit-background-size: 30px auto;
    background-size: 30px auto;
}

.unit-rating {
    position: relative;
    width: 150px;
    height: 30px;
    background-position: 0 -30px;
}

.unit-rating li {
    text-indent: -90000px;
    padding: 0;
    margin: 0;
    float: left;
}

.unit-rating li a {
    display: block;
    width: 30px;
    height: 30px;
    text-decoration: none;
    border: 0 none !important;
    text-indent: -9000px;
    z-index: 17;
    position: absolute;
    padding: 0;
}

.unit-rating li a:hover {
    background-position: 0 -60px;
    z-index: 2;
    left: 0;
}

.unit-rating a.r1-unit {
    left: 0;
}

.unit-rating a.r1-unit:hover {
    width: 30px;
}

.unit-rating a.r2-unit {
    left: 30px;
}

.unit-rating a.r2-unit:hover {
    width: 60px;
}

.unit-rating a.r3-unit {
    left: 60px;
}

.unit-rating a.r3-unit:hover {
    width: 90px;
}

.unit-rating a.r4-unit {
    left: 90px;
}

.unit-rating a.r4-unit:hover {
    width: 120px;
}

.unit-rating a.r5-unit {
    left: 120px;
}

.unit-rating a.r5-unit:hover {
    width: 150px;
}

.unit-rating li.current-rating {
    background-position: 0 0;
    position: absolute;
    height: 30px;
    display: block;
    text-indent: -9000px;
    z-index: 1;
}

/* COMMENTS */
.dle-comm form textarea {
    padding: 30px;
    border-radius: 10px;
}

.dle-comm form textarea + .dle-form_flex {
    margin-top: 20px;
}

.dle-comm form input[type="text"] {
    background: var(--bg);
}

.dle-comm_submit {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

@media (max-width: 860px) {
    .dle-comm_submit {
        display: block;
    }
}

.dle-comm_submit button i {
    margin-right: 5px;
}

.dle-comm_item {
    display: flex;
    align-items: flex-start;
    margin-top: 20px;
}

.dle-comm_item > img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 20px;
}

.dle-comm_content h4 {
    margin-bottom: 10px;
}

.dle-comm_content [id], .dle-comm_content p {
    opacity: 0.8;
    font-size: 16px;
}

.dle-comm_meta {
    align-items: center;
    color: #6e6e6e;
    font-size: 14px;
    margin-top: 10px;
}

.dle-comm_meta span {
    margin: 0 20px;
}

.dle-comm_meta a:hover, .dle-comm_meta i:hover {
    color: var(--color1);
}

.dle-comm_det {
    position: relative;
    cursor: pointer;
}

.dle-comm_det.active > div {
    visibility: visible;
    opacity: 1;
}

.dle-comm_det > div {
    position: absolute;
    background: var(--bg2);
    color: var(--text);
    padding: 10px 20px;
    box-shadow: 0 0 20px 0 rgb(0 0 0 / 10%);
    border-radius: 10px;
    bottom: 30px;
    right: 0;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
    overflow: hidden;
    z-index: 5;
}

.dle-comm_det > div a {
    display: block;
    margin: 5px 0;
}

.mass_comments_action {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

@media (max-width: 860px) {
    .mass_comments_action {
        text-indent: -9999px;
    }
}

.mass_comments_action select {
    margin-right: 20px;
}

/* PODSVETKA V CODE */
pre code {
    display: block;
    padding: 10px;
    background: var(--bg2);
    border: 1px solid var(--light);
    overflow: auto;
    white-space: pre;
}

.hljs-comment, .hljs-quote {
    color: #a0a1a7;
    font-style: italic;
}

.hljs-doctag, .hljs-keyword, .hljs-formula {
    color: #a626a4;
}

.hljs-section, .hljs-name, .hljs-selector-tag, .hljs-deletion, .hljs-subst {
    color: #e45649;
}

.hljs-literal {
    color: #0184bb;
}

.hljs-string, .hljs-regexp, .hljs-addition, .hljs-attribute, .hljs-meta-string {
    color: #50a14f;
}

.hljs-built_in, .hljs-class .hljs-title {
    color: #c18401;
}

.hljs-attr, .hljs-variable, .hljs-template-variable, .hljs-type, .hljs-selector-class, .hljs-selector-attr, .hljs-selector-pseudo, .hljs-number {
    color: #986801;
}

.hljs-symbol, .hljs-bullet, .hljs-link, .hljs-meta, .hljs-selector-id, .hljs-title {
    color: #4078f2;
}

.hljs-emphasis {
    font-style: italic;
}

.hljs-strong {
    font-weight: bold;
}

.hljs-link {
    text-decoration: underline;
}

.scriptcode,.text_spoiler,.title_quote,.title_spoiler {
    padding: 20px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
}

blockquote, .quote {
    position: relative;
    background: var(--bg);
    border-radius: 10px;
    padding: 30px 30px 30px 80px;
    border: none;
}

blockquote:before, .quote:before {
    content: '"';
    position: absolute;
    top: 30px;
    left: 20px;
    font-size: 100px;
    line-height: 100px;
    font-weight: 700;
    color: #52ca9e;
}

/* FORM */
.dle-form .dle-form_flex input, .dle-form .dle-form_flexno input {
    max-width: 400px;
}

.dle-form_flex {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.dle-form_flex input + input {
    margin-left: 10px;
}

.dle-form_flex > a img {
    border-radius: 20px;
    overflow: hidden;
    object-fit: cover;
}

.dle-form_flex > div {
    margin-left: 30px;
}

.dle-form_flex > div > label {
    display: inline-block;
    margin-bottom: 10px;
}

.dle-form_flexno {
    margin-bottom: 30px;
}

.dle-form_flexno label {
    display: block;
    margin-bottom: 10px;
    color: #898890;
    font-size: 14px;
    font-weight: 400;
}

.wseditor {
    border-radius: var(--radius);
    overflow: hidden;
}

/* VOTE */
#dle-question {
    display: inline-block;
    border: 2px solid var(--bg);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center ;
    margin-right: 10px;
}

.dle-vote {
    border: 2px solid var(--color1);
    border-radius: 10px;
    padding: 30px;
    margin: 20px 0;
}

.dle-vote_title {
    display: flex;
    align-items: center;
}

.dle-vote_title h3 {
    margin-bottom: 0;
    margin-left: 20px;
}

.dle-vote_title i {
    font-size: 22px;
    color: var(--color1);
}

.pollanswer {
    display: block;
    margin-top: 20px;
}

.pollanswer:first-child {
    margin-top: 0;
}

.dle-vote_grade {
    font-weight: 500;
    opacity: 0.6;
    margin-bottom: 20px;
}

.dle-vote_list {
    display: inline-block;
    font-size: 15px;
    line-height: 1.7;
    margin: 20px 0;
}

.pollprogress,.voteprogress {
    background: var(--dark);
    height: 6px;
    margin: 15px 0;
    border-radius: 2px;
    overflow: hidden;
}

.pollprogress span,.voteprogress span {
    display: block;
    background: var(--color1);
    text-indent: -9999px;
}

.pollallvotes {
    display: none;
}

/* SEARCH */
#fullsearch {
    grid-column: 1/-1
}

#fullsearch > div, #searchinput {
    margin: 0!important;
    width: 100%!important;
}

#fullsearch #dofullsearch {
    display: none;
}

#fullsearch table {
    margin-bottom: 30px;
}

/* DLE ATTACH */
.dle-atta {
    background: var(--color1);
    color: var(--text-color);
    padding: 20px;
    border-radius: 10px;
    justify-content: space-between;
    align-items: center;
}

.dle-atta h4 {
    margin-bottom: 10px;
}

.dle-atta span {
    font-size: 14px;
}

.dle-atta a {
    display: inline-block;
    background-color: #0d6efd;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
}

/* DLE STATS */
.dle-stats_top {
    background: var(--bg2);
    padding: 30px;
    margin-bottom: 30px;
}

.dle-stats_top li {
    position: relative;
    margin: 10px 0;
    margin-top: 15px;
    padding-left: 30px;
}

.dle-stats_top li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    background-color: #3394e6;
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.dle-stats_top li:nth-child(1):before {
    background-color: #f6a71a;
}

.dle-stats_top li:nth-child(2):before {
    background-color: #ce3f28;
}

.dle-stats_top li span {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.dle-stats h2 {
    margin-bottom: 10px;
}

.dle-stats p {
    border-top: 1px dotted #d5d5d5;
    margin: 10px 0;
    padding-top: 10px;
}

.dle-stats p > b {
    float: right;
}

/* DLE MODAL */
.dle-popup-newpm {
    display: none!important;
}

.ui-widget-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    opacity: 0.5;
}

.ui-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%,-50%);
    width: 420px;
    min-width: 500px;
    background: var(--bg2);
    box-shadow: 0 8px 40px -10px rgb(0 0 0 / 30%);
    padding: 30px;
    border-radius: 20px;
    cursor: move;
    z-index: 999;
}

@media (max-width: 860px) {
    .ui-dialog {
        width: calc(100% - 40px)!important;
        min-width: unset;
    }
}

.ui-dialog-titlebar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ui-dialog-title {
    font-size: 18px;
    font-weight: bold;
}

.ui-dialog-titlebar-close {
    position: relative;
    width: 35px;
    height: 35px;
    line-height: 35px;
    color: var(--bg2);
    cursor: pointer;
}

.ui-dialog-titlebar-close:before {
    content: "\f00d";
    position: absolute;
    background: var(--bg);
    color: var(--text);
    border-radius: 10px;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    font-family: "Font Awesome 6 Pro";
    font-weight: 400;
    font-size: 20px;
}

.ui-dialog-titlebar-close:hover:before {
    background: var(--color1);
}

.ui-dialog-buttonset {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.ui-dialog-buttonset button {
    display: inline-block;
    background: var(--color1);
    color: var(--text1);
    border-radius: 10px;
    padding: 15px 20px;
    cursor: pointer;
}

.ui-dialog-buttonset button:hover {
    background: var(--color2);
    color: var(--text1);
}

.ui-dialog-buttonset button + button {
    margin-left: 10px;
}

.ui-dialog #dlereplypopup textarea {
    background: var(--bg);
    margin-top: 10px;
}

/* DLE USER 3.0 */
.dle-user {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url(../images/bg.jpg);
    background-size: cover;
    background-position: center;
    padding: 30px 0;
    width: 100%;
    text-align: center;
    z-index: 1;
    overflow: hidden;
}

.dle-user:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(360deg, #110f1a 5%, transparent);
    z-index: -1;
}

.dle-user img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
}

.dle-user h4 {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
}

.dle-user_status {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    background: var(--color1);
    padding: 5px 10px;
    border-radius: var(--radius);
    font-size: 14px;
}

.dle-user_links {
    background: var(--bg2);
    /* padding: 15px 0; */
    margin-bottom: 30px;
}

.dle-user_links .container {
    align-items: center;
    justify-content: center;
}

.dle-user_links a {
    color: #aeabc7;
    padding: 15px 0;
    margin: 0 20px;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    text-transform: uppercase;
}

.dle-user_links a:hover {
    border-bottom: 2px solid var(--color1);
}

.dle-user_info {
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light);
    margin-bottom: 30px;
}

@media (max-width: 860px) {
    .dle-user_info ul + ul {
        margin-top: 30px;
    }
}

.dle-user_info ul li {
    padding: 5px 0;
}

.dle-user_info ul li span {
    display: inline-block;
    min-width: 160px;
    color: #8a8991;
}

.dle-user_sett:target {
    display: block;
}

/* PM PAGE */
.pm-page > .pm-page {
    margin-top: 20px;
}

.pm-page .dle-comm_item {
    background: var(--bg2);
    padding: 20px;
    border-radius: 10px;
}

.pm-page_lists {
    align-items: center;
    margin-bottom: 20px;
}

.pm-page_lists li + li {
    margin-left: 10px;
}

.pm-page_lists a {
    display: inline-block;
    background: var(--bg2);
    padding: 10px 20px;
    border-radius: 10px;
}

@media (max-width: 860px) {
    .pm-page_lists a {
        padding: 10px;
    }
}

.pm-page_lists a:hover {
    background: var(--color1);
    color: var(--text1)
}

.pm-page_status {
    position: relative;
    background: var(--bg2);
    padding: 20px;
    border-radius: 10px;
}

.pm_progress_bar {
    background: var(--bg);
    box-shadow: inset 0 2px 5px rgb(0 0 0 / 10%);
    border-radius: 5px;
    margin: 10px 0;
    overflow: hidden;
}

.pm_progress_bar span {
    display: block;
    background: var(--color1);
    box-shadow: 0 0 15px 5px var(--color1);
    font-size: 0;
    text-indent: -2000em;
    height: 20px;
    overflow: hidden
}

.pm select {
    width: 100%;
    margin-bottom: 10px
}

.pm td.pm_head,.pm td.pm_list,.userstop td {
    border-bottom: 2px solid var(--bg2);
    padding: 12px 20px;
}

@media (max-width: 860px) {
    .pm_list.pm_from, .pm td:nth-child(3) {
        display: none;
    }
}

table.pm,table.userstop {
    width: 100%;
    margin-bottom: 0;
    font-size: 14px;
}

table.pm select {
    width: 175px
}

@media (max-width: 860px) {
    .pm-page tbody tr td:nth-child(1) {
        display: none;
    }
}